﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Collections.TreeCollections;
using EventLogAssembly;

namespace FeatureModel.Collections.TreeArgs
{
    public class TreeObjectAddedEventArgs : TreeEventArgs
    {
        public INonLeaf Parent { get; protected set; }
        public INonRoot ObjectToAdd { get; protected set; }
        /// <summary>
        /// 
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="parent"></param>
        /// <param name="objToAdd"></param>
        public TreeObjectAddedEventArgs(object sender, string eventInfo, int eventNum
            , INonLeaf parent, INonRoot objToAdd)
            : base(sender, eventInfo, eventNum)
        {
            this.Parent = parent;
            this.ObjectToAdd = objToAdd;
        }
    }
}
